package com.trw.trp.bean;

import java.util.List;

public class UserBean {
	private String email;
	private long userId;
	private String name;
	private String division;
	private String department;
	private String position;
	private String tel;
	private String mobile;
	private List<RoleBean> roleList;

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public long getUserId() {
		return userId;
	}

	public void setUserId(long userId) {
		this.userId = userId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDivision() {
		return division;
	}

	public void setDivision(String division) {
		this.division = division;
	}

	public String getDepartment() {
		return department;
	}

	public void setDepartment(String department) {
		this.department = department;
	}

	public String getPosition() {
		return position;
	}

	public void setPosition(String position) {
		this.position = position;
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public List<RoleBean> getRoleList() {
		return roleList;
	}

	public void setRoleList(List<RoleBean> roleList) {
		this.roleList = roleList;
	}

	@Override
	public boolean equals(Object o) {
		if (o == null || !(o instanceof UserBean)) {
			return false;
		}
		return userId == ((UserBean) o).userId;
	}

	@Override
	public String toString() {
		return "UserBean [email=" + email + ", userId=" + userId + ", name="
				+ name + ", division=" + division + ", department="
				+ department + ", position=" + position + ", tel=" + tel
				+ ", mobile=" + mobile + ", roleList=" + roleList + "]";
	}

}
